/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.api;

import com.jeesite.modules.storage.service.BrandService;
import com.jeesite.modules.storage.common.ServerResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 品牌Controller
 */
@RestController(value = "apibrand")
@RequestMapping(value = "/api/brand")
public class BrandController extends APIController {

    @Autowired
    private BrandService brandService;

    /**
     * 品牌店铺
     * @param transMemberId 转发会员Id
     * @param memberId 会员Id
     * @param activityId 活动Id
     * @param transActivityId 转发Id
     * @return 品牌店铺
     */
    @RequestMapping(method = RequestMethod.GET,value = "content")
    @ResponseBody
    public ServerResponse<Map> content(@RequestParam(value = "transMemberId",required = false)String transMemberId,@RequestParam(value="memberId") String memberId, @RequestParam(value="activityId") String activityId, @RequestParam(value="transActivityId") String transActivityId)
    {
        return  ServerResponse.createBySuccess(200, brandService.getContent(transMemberId,memberId,activityId,transActivityId));
    }

}